package com.hmdp.controller;


import com.hmdp.service.IBlogService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/thread")
public class ThreadController {

    @Resource
    private IBlogService blogService;

    @GetMapping("/testThredData")
    public List testThredData(){
        return blogService.getAllResult();
    }

}
